import request from '@/utils/request'

// 查询公房管理列表
export function listPublichousing(query) {
  return request({
    url: '/czj/publichousing/list',
    method: 'get',
    params: query
  })
}

// 查询公房管理详细
export function getPublichousing(roomid) {
  return request({
    url: '/czj/publichousing/' + roomid,
    method: 'get'
  })
}

// 新增公房管理
export function addPublichousing(data) {
  return request({
    url: '/czj/publichousing',
    method: 'post',
    data: data
  })
}

// 修改公房管理
export function updatePublichousing(data) {
  return request({
    url: '/czj/publichousing',
    method: 'put',
    data: data
  })
}

// 删除公房管理
export function delPublichousing(roomid) {
  return request({
    url: '/czj/publichousing/' + roomid,
    method: 'delete'
  })
}
